/*
 * ComandoDeslogarAdmin.java
 *
 * Created on 8 de Janeiro de 2008, 18:39
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package br.uff.javabasico.comandos;

import br.uff.javabasico.exception.ExcecaoComando;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

/**
 *
 * @author HelioKann
 */
public class ComandoDeslogarAdmin implements Comando{
    
    /** Creates a new instance of ComandoDeslogarAdmin */
    public ComandoDeslogarAdmin() {
    }
    
    public String executar(HttpServletRequest req) throws ExcecaoComando {
        HttpSession sessao = req.getSession();
        sessao.removeAttribute("admin");
        return "admin/admin.jsp";
    }
    
}
